public class Calculator {
    private static int result;
    public  void add(int a) {
        result = result + a;
    }
    public  int getresult() {
        return result ;
    }
    public void substract(int n) {
        result = result - n;
    }
    public void clear() {
        result = 0;
    }
}
